package com.his.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.his.service.OpertionPaperVOService;
import com.his.vo.OperationPaperVIO;
@Controller
public class OperationPaperVOController {
	@Autowired
	private OpertionPaperVOService opPaperService;
	@RequestMapping("/do_operation")
	public void getopPaper(OperationPaperVIO oPaperVIO){
		 opPaperService.saveOperationPaper(oPaperVIO);
		 opPaperService.saveDoctor(oPaperVIO);
		 opPaperService.saveOperationDetail(oPaperVIO);
	}
	@RequestMapping("/Aopid")
	public @ResponseBody Long getAopid(){
		return opPaperService.maxid();
	}
}
